var code = "";
var id = document.getElementById("customerId").value;
if (window.location.href.indexOf("code") != -1) {
    code = window.location.href.split("code=")[1].split("&state")[0];
}
$.ajax({
    url: Feng.ctxPath + "/integralMallWeixin/generateQrCodes",
    type: "POST",
    data: {"code": code,"id": id},
    success: function (data) {

    },
    error: function (data) {

    }
});